package com.remedios.pojo;

import com.remedios.myAnnotation.MyAutoWired;
import com.remedios.myAnnotation.MyRepository;
import com.remedios.myAnnotation.MyValue;

@MyRepository
public class Book {


    //BookInfo
    @MyValue("${jis.bookName}")
    @MyAutoWired
    private String bookName;
    @MyValue("${jis.author}")
    @MyAutoWired
    private String author;
    @MyValue("${jis.price}")
    @MyAutoWired
    private Double price;
    @MyValue("${jis.description}")
    @MyAutoWired
    private String description;


    @Override
    public String toString() {
        return "Book{" +
                "bookName='" + bookName + '\'' +
                ", author='" + author + '\'' +
                ", price=" + price +
                ", description='" + description + '\'' +
                '}';
    }

    public String getDescription() {
        return description;
    }

    public Double getPrice() {
        return price;
    }

    public String getAuthor() {
        return author;
    }

    public String getBookName() {
        return bookName;
    }


}
